<?php $this->start('admin_menu')?>
	<?php echo $this->element('admin_menu', array('str_item' => 'products')) ?>
<?php $this->end(); ?>

<div class="optionTypes view">
<h2><?php  echo __('Option Type'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($optionType['OptionType']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($optionType['OptionType']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Status'); ?></dt>
		<dd>
			<?php echo h($optionType['OptionType']['status']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created At'); ?></dt>
		<dd>
			<?php echo h($optionType['OptionType']['created_at']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created By'); ?></dt>
		<dd>
			<?php echo h($optionType['OptionType']['created_by']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Option Type'), array('action' => 'edit', $optionType['OptionType']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Option Type'), array('action' => 'delete', $optionType['OptionType']['id']), null, __('Are you sure you want to delete # %s?', $optionType['OptionType']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Option Types'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Option Type'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Option Values'), array('controller' => 'option_values', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Option Value'), array('controller' => 'option_values', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Option Values'); ?></h3>
	<?php if (!empty($optionType['OptionValue'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Option Type Id'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($optionType['OptionValue'] as $optionValue): ?>
		<tr>
			<td><?php echo $optionValue['id']; ?></td>
			<td><?php echo $optionValue['name']; ?></td>
			<td><?php echo $optionValue['option_type_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'option_values', 'action' => 'view', $optionValue['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'option_values', 'action' => 'edit', $optionValue['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'option_values', 'action' => 'delete', $optionValue['id']), null, __('Are you sure you want to delete # %s?', $optionValue['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Option Value'), array('controller' => 'option_values', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
